package cn.ycc1.boot3aop.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * @author ycc
 * @date 2023/11/19
 */
//@Aspect
@Component
public class MyAspect {

    @Before("execution(* cn.ycc1.boot3aop.service.*.*(..))")
    public void before() {
        System.out.println("前置通知：方法执行前");
    }
}
